/**
 * Pangolin IM Server
 * autor:   yiyefangzhou24
 * email:   yiyefangzhou24@qq.com
 * data:    21/10/1
 */

#ifndef PANGOLINSERVER_RECEIVE_H
#define PANGOLINSERVER_RECEIVE_H

#include "event2/event.h"
#include "event2/buffer.h"
#include "event2/bufferevent.h"

#define RES_OK          0
#define RES_SYS         1
#define RES_FORM        2
#define RES_LOGIN       3
#define RES_KEY         4
#define RES_NOTFRIEND   5
#define RES_FRIENDED    6
#define RES_NOUSER      7
#define RES_SAMEID      8


void receive_buff(struct bufferevent *bev,char *buff);

#endif //PANGOLINSERVER_RECEIVE_H
